import org.junit.Test;

public class PalindromTest {
    Palindrom pal = new Palindrom();
    String a = "ama";

    @Test
    public void testFindAllPalindroms() throws Exception {
        pal.findAllPalindroms("topot");
        assert(2==pal.numOfFoundPalindroms);
    }

    @Test
    public void testCheckPalindrom() throws Exception {
        assert(true==pal.checkPalindrom(a));
        assert(3==pal.numOfFoundPalindroms);

    }

    @Test
    public void testReverseString() throws Exception {
        assert(a.equals(pal.reverseString(a)));
    }
}
